package com.itheima.mapper;

import com.itheima.pojo.entity.Member;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @className MemberMapper
 */
@Mapper
public interface MemberMapper {

    Member selectMemberByQuery(@Param("phoneNumber") String phoneNumber,
                               @Param("id") Integer memberId); //根据条件查询会员信息

    @Insert("insert into t_member (phoneNumber,regTime) values" +
            " (#{phoneNumber},#{regTime})")
    void insertMember(Member member); //添加会员
}
